import service from "@/utils/request"

import LoginWork from "@/utils/LoginWork"

// 基础资料建档
// 成型生产线资料定义表格数据查询
export const ProductionLineData = () => {
    return service.get<any,any>(`/bioDeptWrok/getLineQuery`)
}

// 新增
export const AddProduction = (parms:any) => {
    return LoginWork.put<any,any>(`/bioDeptWrok/lineAdd`,parms)
}

// 删除
export const removeDate = (workshopOld:any) => {
    return LoginWork.post<any,any>(`/bioDeptWrok/lineDelete?workshopOld=${workshopOld}`)
}

// 型体建档查询
export const styleDateList = (parms:any,style:string) => {
    return service.put<any,any>(`/bioDeptWrok/getIEQuery?style=${style}`,parms)
}

// 学习曲线查询
export const learningCurveDate = () => {
    return service.get<any,any>(`/bioDeptWrok/getCurveQuery`)
}

// 新增
export const Addlearning = (parms:any) => {
    return LoginWork.put<any,any>(`/bioDeptWrok/curveAdd`,parms)
}

// 删除
export const removelearning = (id:any) => {
    return LoginWork.post<any,any>(`/bioDeptWrok/curveDelete?id=${id}`)
}

// 节假日查询
export const HolidayInquiry = (parms:any) => {
    return service.put<any,any>(`/bioDeptWrok/getHolidayQuery`,parms)
}

// 成型产平定义 
export const projectTableDate = (parms:any) => {
    return service.put<any,any>(`/bioDeptWrok/getCustomQuery`,parms)
}

// 产线查询
export const lineTableDate = (parms:any,date:string,line:string) => {
    return service.put<any,any>(`/bioDeptWrok/getDayPercentQuery?line=${line}&time=${date}`,parms)
}

// 型体IE
export const AddIEDate = (parms:any) => {
    return LoginWork.put<any,any>(`/bioDeptWrok/iEAdd`,parms)
}

// 删除型体IE删除
export const removeIe = (style:any) => {
    return LoginWork.post<any,any>(`/bioDeptWrok/iEDelete?style=${style}`)
}

// 节假日新增
export const AddHolidays = (parms:any) => {
    return LoginWork.put<any,any>(`/bioDeptWrok/holidayAdd`,parms)
}

// 节假日删除
export const deleteHolidays = (holidayDate:string) => {
    return LoginWork.post<any,any>(`/bioDeptWrok/holidayDelete?holidayDate=${holidayDate}`)
}

// 产品定义新增
export const addProject = (parms:any) => {
    return LoginWork.put<any,any>(`/bioDeptWrok/customAdd`,parms)
}

// 产品删除
export const deleteProJect = (id:any) => {
    return LoginWork.post<any,any>(`/bioDeptWrok/customDelete?id=${id}`)
}

// 产品定义新增
export const addisplacement = (parms:any) => {
    return LoginWork.put<any,any>(`/bioDeptWrok/dayPercentAdd`,parms)
}

// 产品删除
export const deletedisplacement = (id:any) => {
    return LoginWork.post<any,any>(`/bioDeptWrok/dayPercentDelete?id=${id}`)
}

// 时辰查询
export const HourQuery = () => {
    return service.get<any,any>('/bioDeptWrok/getLtCommonQuery')
}

// 日期
export const dateListLo = (date:any) => {
    return LoginWork.post<any,any>(`/bioDeptWrok/monthPercentAdd?date=${date}`)
}

// 进度查询
export const progressQuery = (parms:any) => {
    return service.put<any,any>(`/bioDeptWrok/getScheduleQuery`,parms)
}

// 型体查询
export const styleQuery = () => {
    return service.get<any,any>(`/bioDeptWrok/getStyleBack`)
}

// 订单资料查询
export const OrderInformationInquiry = (parms:any) => {
    return service.put<any,any>(`/bioDeptWrok/getScheduleLotQuery`,parms)
}

// 进度查询安排资料查询
export const progressQueryList = (line:string,lotNo:string,style:string) => {
    return service.post<any,any>(`/bioDeptWrok/getScheduleHeadQuery?line=${line}&lotNo=${lotNo}&style=${style}`)
}

// 指令结束
export const orderStyle = (lotNo:string,schFlag:string) => {
    return LoginWork.post<any,any>(`/bioDeptWrok/scheduleLotTF?lotNo=${lotNo}&schFlag=${schFlag}`)
}

// 更新指令
export const updateLotNo = () => {
    return LoginWork.get<any,any>(`/bioDeptWrok/scheduleLotUp`)
}

// 上移下移
export const BottomGotoTop = (parms:any) => {
    return LoginWork.post<any,any>(`/bioDeptWrok/indexUpDown`,parms)
}

// 安排进度新增
export const scheduleDateAdd = (line:string,parms:any) => {
    return LoginWork.post<any,any>(`/bioDeptWrok/scheduleHeadAdd?line=${line}`,parms)
}

// 安排进度
export const scheduleDate = () => {
    return LoginWork.post<any,any>(`/bioDeptWrok/updateScheduleHead`)
}
0
// 取消安排删除
export const deleteScheduleDate = (parms:any) => {
    return LoginWork.post<any,any>(`/bioDeptWrok/scheduleHeadDelete`,parms)
}

// 批量移线
export const BulkLineShift = (parms:any) => {
    return LoginWork.put<any,any>(`/bioDeptWrok/lineMove`,parms)
}

// 批量改序号
export const BatchNumbering = (parms:any) => {
    return LoginWork.put<any,any>(`/bioDeptWrok/indexMove`,parms)
}

// 计算进度表
export const CalculatingProgress = (time:string) => {
    return LoginWork.post<any,any>(`/bioDeptWrok/cptScheduleHead?time=${time}`)
}